package hjt.com.module.user.service;

import androidx.fragment.app.Fragment;

import com.tong.lib.utils.SPUtils;

import hjt.com.componentbase.service.ILoginService;
import hjt.com.module.user.fragment.UserFragment;

/**
 * Created by hjt on 2019/5/5.
 */

public class UserService implements ILoginService {

    @Override
    public boolean isLogin() {
        return (boolean) SPUtils.get("isLogin",false);
    }

    @Override
    public String getToken() {
        return (String) SPUtils.get("token", "token为空");
    }

    @Override
    public Fragment getUserFragment() {
        return new UserFragment();
    }

}
